
// 页面组件
import PublishSeed from '@/pages/PublishSeed.vue';
import SeedDetail from '@/pages/SeedDetail.vue';
import SeedList from '@/pages/SeedList.vue';

const routes = [
    {
      path: '/',
      redirect: '/seeds'
    },
    {
      path: '/seeds',
      name: 'SeedList',
      component: SeedList
    },
    {
      path: '/detail/:id',
      name: 'SeedDetail',
      component: SeedDetail
    },
    {
        path: '/create',
      name: 'PublishSeed',
      component: PublishSeed
    }
  ];


export default routes;
